<div id="navigation" style="height:30px;">
	<img alt="" src="${resource(dir: 'images', file: 'grails_logo.gif')}">
		<g:form url='[controller: "search", action: "index"]' id="searchableForm" name="searchableForm" method="get" style="float:right;margin:2px;">
    			<g:textField name="q" value="${params.q}" size="40"/>
    			<select name="domainName" id="domainName">
    				<option value="product">产品</option>
    				<option value="knowlege">知识库</option>
    			</select>
    			<input type="submit" value="Search" />
		</g:form>
		
		<sec:ifLoggedIn>
			<span>当前用户： </span><sec:username/> | <g:link controller="logout">退出</g:link>
		</sec:ifLoggedIn>
		<sec:ifNotLoggedIn>
			<span><g:link controller='login' action='auth'> 登录 </g:link></span>
		</sec:ifNotLoggedIn>
</div>
<div id="menu">
	<div class="ngtab clearFix">
		<sec:ifAllGranted roles="ROLE_ADMIN">
			<div id="system" class="nu">
			<g:link controller='customer' action='list'>客户管理</g:link>
		</div>
		</sec:ifAllGranted>
		<sec:ifAllGranted roles="ROLE_ADMIN">
			<div id="system" class="nu">
			<g:link controller='order' action='list'>订单管理</g:link>
		</div>
		</sec:ifAllGranted>
		<sec:ifAllGranted roles="ROLE_PRODUCT">
			<div id="product"  class="nu">
				<g:link controller='distribution' action='list'>订单配送</g:link>
			</div>
		</sec:ifAllGranted>
		<sec:ifAllGranted roles="ROLE_PAYMENT">
			<div id="payment"  class="nu">
				<g:link controller='payment' action='list'>收付款</g:link>
			</div>
		</sec:ifAllGranted>
		<sec:ifAllGranted roles="ROLE_PRODUCT">
			<div id="product">
				<g:link controller="product" action="list">产品管理</g:link>
			</div>
		</sec:ifAllGranted>
		<sec:ifAllGranted roles="ROLE_REPORT">
			<div id="report"  class="nu">
				<g:link controller='report' action='list'>报表</g:link>
			</div>
		</sec:ifAllGranted>
		<div>
			<g:link controller="baseinfo" action="search">基础配置</g:link>
		</div>
		<sec:ifAllGranted roles="ROLE_ADMIN">
			<div id="system"  class="nu">
				<g:link controller='user' action='list'>系统管理</g:link>
			</div>
		</sec:ifAllGranted>
    </div>
</div>
